package com.alibaba.nacos.core.remote;

import com.alibaba.nacos.common.remote.PayloadRegistry;
import lombok.extern.slf4j.Slf4j;
import org.springframework.util.StopWatch;

import javax.annotation.PostConstruct;

@Slf4j
public abstract class BaseRpcServer {

    static {
        PayloadRegistry.init();
    }


    @PostConstruct
    public void start() throws Exception {
        startServer();
    }

    protected abstract void startServer();
    public abstract int rpcPortOffset();
}
